﻿using System.Collections.Generic;
using System.Linq;

namespace PurchaseSales.Manage.Common
{
    public static class FunctionModule
    {
        public static Dictionary<string, string> GetAllFunction()
        {
            var modules = AppConfig.Modules;

            return modules.Select(module => module.Split(':')).ToDictionary(strings => string.Format("{0}{1}", strings[0], "ViewModel"), strings => strings[1]);
        }
    }
}